package isquirrel.beans;

import static org.junit.Assert.*;
import org.junit.Test;


public class UrlTest {

	@Test
	public void testEquals() {
		
		Url url1 = new Url("Phigita.net","http://www.phigita.net");
		Url url2 = new Url("UBS","http://www.ubs.co.uk");
		Url url3 = new Url("UBS","http://www.phigita.net");

		assertFalse(url1.equals(url2));
		assertTrue(url1.equals(url3));
		assertEquals(url1.hashCode(),url3.hashCode());
	}
}
